<%--
  Created by IntelliJ IDEA.
  User: Media
  Date: 2022/9/23
  Time: 11:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
     <form action="" method="post" name="ha">
         用户名<input name="user" type="text">
         <br>
         密码<input name="mima" type="text">
         <br>
         <input type="submit" value="登录">
     </form>
<%
    String name=null,ma=null;
    name=request.getParameter("user");
    ma=request.getParameter("mima");
    if (name!=null&& ma!=null)
    {

    %>
     <jsp:forward page="f-1.jsp" >
         <jsp:param name="name" value="<%=name%>"/>
         <jsp:param name="ma" value="<%=ma%>"/>
     </jsp:forward>
     <%
    }
%>
</body>
</html>
